import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    port: 5012,
    proxy: {
      "/domain": {
        // 测试网
        target: "http://127.0.0.1:5600/",
        ws: true,
        changeOrigin: true,
        // rewrite: (path) => path.replace(/^\/api/, ''),
      }
    },
    // disableHostCheck: true,
  },
})
